public class WhileLoopEx {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		// for(intialization;evaluation; incremental )
		{
			// statments to execute
		}

		int i = 20; // intialazation

	 	while (i <= 10) {
			int j = 1;
			while (j <= i)

			{

				System.out.print("*");
				j++;

			}
			System.out.print("\n");

			i++;
		}
		
	
		//do -while 
		
		
		i =20;
		
		do
		{
			System.out.println("I am from DO-WHILE -- value of i is --"+i);
			
		}while(i<=10);
		
		

	}

}
